package message

type LoginReqData struct {
	Username string `json:"username"`
	Password string `json:"password"`
}

type CommonRespData struct {
	Code int    `json:"code"`
	Msg  string `json:"msg"`
}

type LoginRespData struct {
	CommonResp CommonRespData `json:"common_resp"`
	Username   string         `json:"username"`
}

type HeartBeatReqData struct {
	Username string `json:"username"`
}

type RegisterReqData struct {
	Username string `json:"username"`
	NickName string `json:"nickname"`
	PassWord string `json:"password"`
}

type PrivateChatReqData struct {
	FromUserName string `json:"from_user_name"`
	ToUserName   string `json:"to_user_name"`
	ChatMessage  string `json:"chat_message"`
}

type PrivateChatRespData struct {
	CommonResp   CommonRespData `json:"common_resp"`
	FromNickName string         `json:"from_nick_name"`
	ChatMessage  string         `json:"chat_message"`
}
